package com.yonyou.ucf.mdf.app.isvdxq.secondpart.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.iuap.yms.param.BaseEntity;
import com.yonyou.iuap.yms.annotation.*;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@YMSEntity
@YMSTable(tableName = "dxq_storerecord")
public class StorerecordEntity extends BaseEntity {

    private String id;

    //0 pad 1 pc
    private Integer type = 0;

    private String transtype;

    private String ordercode;

    //单据类型,1入库单(分配标签),2发货单,3到货单(到货分配标签、上架) 盘点补签4 盘亏补出库5 入库单补签6 出库单不出7
    private String ordertype;

    private Integer orderstatus;

    private String rfidcodeId;

    private String rfidcode;

    private String orderid;

    private String orderdetailid;

    private int dr = 0;

    private Integer version;

    @YMSColumn(name = "ytenant_id")
    private String ytenant_id;

    @YMSColumn(name = "pk_temp")
    private String pk_temp;

    @YMSColumn(name = "create_time")
    private String create_time;

    @YMSColumn(name = "modify_time")
    private String modify_time;

    private String creator;

    private String modifier;

    private String pubts;

    private String orderstoreId;

    private String stockId;

    private String priceUOM;

    private String invExchRate;

    private String unitExchangeType;

    private String invPriceExchRate;

    private String unitExchangeTypePrice;

    private String upcode;

    private String firstupcode;

    private String poid;

    private String podetailid;

    private String pocode;

    private String sourceid;

    private String source;

    private String sourceautoid;

    private String firstsourceid;

    private String firstsource;

    private String firstsourceautoid;

    //数据提交批次号,时间(毫秒)+单据类型+四位随机数(私有标识 同步用友后更新)
    //产品批次
    @YMSColumn(name = "batchno")
    private String batchno;

    //私有提交用友回写批次
    @YMSColumn(name = "batch_no")
    private String batch_no;

    //0 拣货中；1拣货完成；| 0未发签，1已发签
    private Integer pickstatus = 0;

    //拣货批次
    private String pickbatchno;

    //提交批次 ordertype不同时,代表不同时期的批次号
    @YMSColumn(name = "batchno_dxq")
    private String batchno_dxq;

    //新增字段
    //'物资ID',
    @YMSColumn(name = "product_id")
    private String product_id;

    //物资名称
    @YMSColumn(name = "product_code")
    private String product_code;

    //物资名称
    @YMSColumn(name = "product_name")
    private String product_name;

    //'物资skuId',
    @YMSColumn(name = "product_sku_id")
    private String product_sku_id;

    //物资SKU名称
    @YMSColumn(name = "product_sku_code")
    private String product_sku_code;

    //物资SKU名称
    @YMSColumn(name = "product_sku_name")
    private String product_sku_name;

    //'仓库ID',
    @YMSColumn(name = "warehouse_id")
    private String warehouse_id;

    //'仓库名称',
    @YMSColumn(name = "warehouse_code")
    private String warehouse_code;

    //'仓库名称',
    @YMSColumn(name = "warehouse_name")
    private String warehouse_name;

    // 计量单位ID
    @YMSColumn(name = "unitId")
    private String unitId;

    // 计量单位名称
    @YMSColumn(name = "unit_code")
    private String unit_code;

    // 计量单位名称
    @YMSColumn(name = "unit_name")
    private String unit_name;

    private String stockUnitId;

    // 库存单位ID
    @YMSColumn(name = "stock_unit_id")
    private String stock_unit_id;

    // 库存单位名称
    @YMSColumn(name = "stock_unit_code")
    private String stock_unit_code;

    // 库存单位名称
    @YMSColumn(name = "stock_unit_name")
    private String stock_unit_name;

    @YMSColumn(name = "f_stock_count")
    private double f_stock_count;

    //epctid
    @YMSColumn(name = "epc_tid")
    private String epc_tid;

    private String productDate;

    private String invalidDate;

    @YMSColumn(name = "epc_status")
    private Integer epc_status = 0;

    private String locationId;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getEpc_status() {
        return epc_status;
    }

    public void setEpc_status(Integer epc_status) {
        this.epc_status = epc_status;
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public String getEpc_tid() {
        return epc_tid;
    }

    public void setEpc_tid(String epc_tid) {
        this.epc_tid = epc_tid;
    }

    public String getProductDate() {
        return productDate;
    }

    public void setProductDate(String productDate) {
        this.productDate = productDate;
    }

    public String getInvalidDate() {
        return invalidDate;
    }

    public void setInvalidDate(String invalidDate) {
        this.invalidDate = invalidDate;
    }

    public double getF_stock_count() {
        return f_stock_count;
    }

    public void setF_stock_count(double f_stock_count) {
        this.f_stock_count = f_stock_count;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getProduct_code() {
        return product_code;
    }

    public void setProduct_code(String product_code) {
        this.product_code = product_code;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getProduct_sku_id() {
        return product_sku_id;
    }

    public void setProduct_sku_id(String product_sku_id) {
        this.product_sku_id = product_sku_id;
    }

    public String getProduct_sku_code() {
        return product_sku_code;
    }

    public void setProduct_sku_code(String product_sku_code) {
        this.product_sku_code = product_sku_code;
    }

    public String getProduct_sku_name() {
        return product_sku_name;
    }

    public void setProduct_sku_name(String product_sku_name) {
        this.product_sku_name = product_sku_name;
    }

    public String getWarehouse_id() {
        return warehouse_id;
    }

    public void setWarehouse_id(String warehouse_id) {
        this.warehouse_id = warehouse_id;
    }

    public String getWarehouse_code() {
        return warehouse_code;
    }

    public void setWarehouse_code(String warehouse_code) {
        this.warehouse_code = warehouse_code;
    }

    public String getWarehouse_name() {
        return warehouse_name;
    }

    public void setWarehouse_name(String warehouse_name) {
        this.warehouse_name = warehouse_name;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getUnit_code() {
        return unit_code;
    }

    public void setUnit_code(String unit_code) {
        this.unit_code = unit_code;
    }

    public String getUnit_name() {
        return unit_name;
    }

    public void setUnit_name(String unit_name) {
        this.unit_name = unit_name;
    }

    public String getStockUnitId() {
        return stockUnitId;
    }

    public void setStockUnitId(String stockUnitId) {
        this.stockUnitId = stockUnitId;
    }

    public String getStock_unit_id() {
        return stock_unit_id;
    }

    public void setStock_unit_id(String stock_unit_id) {
        this.stock_unit_id = stock_unit_id;
    }

    public String getStock_unit_code() {
        return stock_unit_code;
    }

    public void setStock_unit_code(String stock_unit_code) {
        this.stock_unit_code = stock_unit_code;
    }

    public String getStock_unit_name() {
        return stock_unit_name;
    }

    public void setStock_unit_name(String stock_unit_name) {
        this.stock_unit_name = stock_unit_name;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTranstype() {
        return transtype;
    }

    public void setTranstype(String transtype) {
        this.transtype = transtype;
    }

    public String getOrdercode() {
        return ordercode;
    }

    public void setOrdercode(String ordercode) {
        this.ordercode = ordercode;
    }

    public String getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(String ordertype) {
        this.ordertype = ordertype;
    }

    public Integer getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public String getRfidcodeId() {
        return rfidcodeId;
    }

    public void setRfidcodeId(String rfidcodeId) {
        this.rfidcodeId = rfidcodeId;
    }

    public String getRfidcode() {
        return rfidcode;
    }

    public void setRfidcode(String rfidcode) {
        this.rfidcode = rfidcode;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getOrderdetailid() {
        return orderdetailid;
    }

    public void setOrderdetailid(String orderdetailid) {
        this.orderdetailid = orderdetailid;
    }

    public int getDr() {
        return dr;
    }

    public void setDr(int dr) {
        this.dr = dr;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getYtenant_id() {
        return ytenant_id;
    }

    public void setYtenant_id(String ytenant_id) {
        this.ytenant_id = ytenant_id;
    }

    public String getPk_temp() {
        return pk_temp;
    }

    public void setPk_temp(String pk_temp) {
        this.pk_temp = pk_temp;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getModify_time() {
        return modify_time;
    }

    public void setModify_time(String modify_time) {
        this.modify_time = modify_time;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getPubts() {
        return pubts;
    }

    public void setPubts(String pubts) {
        this.pubts = pubts;
    }

    public String getOrderstoreId() {
        return orderstoreId;
    }

    public void setOrderstoreId(String orderstoreId) {
        this.orderstoreId = orderstoreId;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getPriceUOM() {
        return priceUOM;
    }

    public void setPriceUOM(String priceUOM) {
        this.priceUOM = priceUOM;
    }

    public String getInvExchRate() {
        return invExchRate;
    }

    public void setInvExchRate(String invExchRate) {
        this.invExchRate = invExchRate;
    }

    public String getUnitExchangeType() {
        return unitExchangeType;
    }

    public void setUnitExchangeType(String unitExchangeType) {
        this.unitExchangeType = unitExchangeType;
    }

    public String getInvPriceExchRate() {
        return invPriceExchRate;
    }

    public void setInvPriceExchRate(String invPriceExchRate) {
        this.invPriceExchRate = invPriceExchRate;
    }

    public String getUnitExchangeTypePrice() {
        return unitExchangeTypePrice;
    }

    public void setUnitExchangeTypePrice(String unitExchangeTypePrice) {
        this.unitExchangeTypePrice = unitExchangeTypePrice;
    }

    public String getUpcode() {
        return upcode;
    }

    public void setUpcode(String upcode) {
        this.upcode = upcode;
    }

    public String getFirstupcode() {
        return firstupcode;
    }

    public void setFirstupcode(String firstupcode) {
        this.firstupcode = firstupcode;
    }

    public String getPoid() {
        return poid;
    }

    public void setPoid(String poid) {
        this.poid = poid;
    }

    public String getPodetailid() {
        return podetailid;
    }

    public void setPodetailid(String podetailid) {
        this.podetailid = podetailid;
    }

    public String getPocode() {
        return pocode;
    }

    public void setPocode(String pocode) {
        this.pocode = pocode;
    }

    public String getSourceid() {
        return sourceid;
    }

    public void setSourceid(String sourceid) {
        this.sourceid = sourceid;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSourceautoid() {
        return sourceautoid;
    }

    public void setSourceautoid(String sourceautoid) {
        this.sourceautoid = sourceautoid;
    }

    public String getFirstsourceid() {
        return firstsourceid;
    }

    public void setFirstsourceid(String firstsourceid) {
        this.firstsourceid = firstsourceid;
    }

    public String getFirstsource() {
        return firstsource;
    }

    public void setFirstsource(String firstsource) {
        this.firstsource = firstsource;
    }

    public String getFirstsourceautoid() {
        return firstsourceautoid;
    }

    public void setFirstsourceautoid(String firstsourceautoid) {
        this.firstsourceautoid = firstsourceautoid;
    }

    public String getBatchno() {
        return batchno;
    }

    public void setBatchno(String batchno) {
        this.batchno = batchno;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public Integer getPickstatus() {
        return pickstatus;
    }

    public void setPickstatus(Integer pickstatus) {
        this.pickstatus = pickstatus;
    }

    public String getPickbatchno() {
        return pickbatchno;
    }

    public void setPickbatchno(String pickbatchno) {
        this.pickbatchno = pickbatchno;
    }

    public String getBatchno_dxq() {
        return batchno_dxq;
    }

    public void setBatchno_dxq(String batchno_dxq) {
        this.batchno_dxq = batchno_dxq;
    }
}
